package com.lankystar.logistucs.spring.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lankystar.logistucs.spring.dao.ITwoOrderDao;
import com.lankystar.logistucs.spring.entity.TwoOrder;
import com.lankystar.logistucs.spring.entity.TwoStatus;
import com.lankystar.logistucs.spring.service.TwoOrderService;

@Service
public class TwoOrderServiceImpl implements TwoOrderService {

	@Autowired
	private ITwoOrderDao twoOrderDao;
	@Override
	public List<TwoOrder> queryTwoOrderByOneOrderId(int oneOrderId) {
		List<TwoOrder> twoOrderlist = twoOrderDao.selectTwoOrderByOneOrderId(oneOrderId);
		return twoOrderlist;
	}
	@Override
	public List<TwoStatus> queryTwoStatusKeyById(int twoOrderId) {
		List<TwoStatus> twoStatuslist = twoOrderDao.selectTwoStatusKeyById(twoOrderId);
		return twoStatuslist;
	}

}
